IRCBot::Plugin.define "decision_making" do
	help_string 'Makes your decisions for you. Ask questions to me and I\'ll answer.'
	
	def privmsg_function(user,target,message,hostmask)
		if message.downcase =~/^#{$config[$network]['nickname'].downcase}(,|:)\s(should|may|would)/ and message.chomp.end_with?("?") then
			phrases = ['Of course, $nick! Why not?','Sure thing.','Please don\'t.','You shouldn\'t, it\'s dangerous.',"...maybe? Try flipping a coin."]
			privmsg(target,phrases.sort_by{ rand }[0].gsub("$nick",user))
		end
	end
end
